<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<?php
include_once '../objects/person.php';
session_start();
if (!isset($_SESSION['user'])) {
    header("location: ../../index.php");
} else {
    $user = $_SESSION['user'];
    if ($user->getRolperson() == 1) {
        header("location: ../../index.php");
    }
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>* SEPC *</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script language="JavaScript" src="../../js/validations.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../../style/styles.css">
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a href="../../index.php" class="brand"><img src="../../img/sepc_logo.png" alt=""></a>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li class="nav-header"><h3>.: Registro de Razas :.</h3></li>
                            <li><a></a></li><li><a></a></li><li><a></a></li><li><a></a></li>
                            <li><a></a></li><li><a></a></li><li><a></a>
                            <li class="right"><a href="menuadm.php"><?php echo $user->getMail(); ?></a></li>                            
                        </ul>
                        <form class="navbar-form pull-right" name="" action="../closeConexion.php" method="post" >
                            <button type="submit" class="btn btn-danger"><i class="icon-remove-sign  icon-white"></i> Cerrar Session</button>
                        </form> 
                    </div>
                </div>
            </div>
        </div>
        <br>
        <div class="container">
            <div class="row-fluid">
                <ul class="pager ">
                    <li class="previous">
                        <a class="badge-success" href="menuadm.php"><i class="icon-arrow-left icon-white"></i></a>
                    </li>
                    <li class="next disabled">
                        <a class="badge-success" href="#"><i class="icon-arrow-right icon-white"></i></a>
                    </li>
                </ul>
                <legend></legend>
                <div class="span1"></div>
                <div class="span10">
                    <form action="../servlet.php?action=enterRace" name="enterRace" method="post" class="form-horizontal" onsubmit="return validateRace(document);">
                        <table>
                            <tbody>
                                <tr>
                                    <td><label for="namerace" class="control-label">Nombre de la Raza:</label></td>
                                    <td><select name="namerace" id="namerace" required="required">
                                            <option value="" selected>-Seleccionar-</option>
                                            <option value="Aberdeen Angus">Aberdeen Angus</option>
                                            <option value="Angus Rojo">Angus Rojo</option>
                                            <option value="Blaco Orejinegro">Blaco Orejinegro</option>
                                            <option value="Brangus (Brahman x Angus)">Brangus (Brahman x Angus)</option>
                                            <option value="Casanereño">Casanereño</option>
                                            <option value="Charolais">Charolais</option>
                                            <option value="Chino Santandereano">Chino Santandereano</option>
                                            <option value="Gir">Gir</option>
                                            <option value="Harton del Valle">Harton del Valle</option>
                                            <option value="Hereford">Hereford</option>
                                            <option value="Indobrasil">Indobrasil</option>
                                            <option value="Nelore">Nelore</option>
                                            <option value="San Martinero">San Martinero</option>
                                            <option value="Santa Gertrudis">Santa Gertrudis</option>   
                                        </select>
                                    </td>
                                    <td class="span2"></td>
                                    <td><label for="sacrAge" class="control-label">Edad de Sacrificio Promedio de la Raza (Dias):</label></td>
                                    <td><input name="sacrAge" type="number" id="sacrAge" placeholder="540-960 días" required="required" min="540" max="960" maxlength="3"/></td> 
                                </tr>
                                <tr>
                                    <td><label for="birthWeight" class="control-label">Peso de Nacimiento Promedio de la Raza (Kg):</label></td>
                                    <td><input name="birthWeight" type="number" id="birthWeight" placeholder="23-45 Kg" required="required" min="23" max="45" maxlength="2"/></td>       
                                    <td class="span2"></td>
                                    <td><label for="dryMatter" class="control-label">Consumo de Materia Seca Promedio de la Raza (% P.V.):</label></td>
                                    <td><input name="dryMatter" type="number" step="0.01" id="dryMatter" placeholder="2.0 - 4.0 %" required="required" min="2.0" max="4.0" maxlength="3"/></td>
                                </tr>
                                <tr>
                                    <td><label for="weaningWeight" class="control-label">Peso de Destete Promedio de la Raza (Kg):</label></td>
                                    <td><input name="weaningWeight" type="number" id="weaningWeight" placeholder="130 - 210 Kg" required="required" min="130" max="210" maxlength="3"/></td>       
                                    <td class="span2"></td>
                                    <td><label for="efficiency" class="control-label">Rendimiento en Canal Promedio de la Raza (% P.V.)</label></td>
                                    <td><input name="efficiency" type="number" id="efficiency" placeholder="45 - 65 %" required="required" min="45" max="65" maxlength="2"/></td>                             
                                </tr>
                                <tr>
                                    <td><label for="weaningAge" class="control-label">Edad de Destete Promedio de la Raza (Dias):</label></td>
                                    <td><input name="weaningAge" type="number" id="weaningAge" placeholder="180 - 310 días" required="required" min="180" max="310" maxlength="3"/></td>        
                                    <td class="span2"></td>
                                    <td><label for="tenderness" class="control-label">Valor de la Terneza Promedio de la Raza (Kg/f):</label></td>
                                    <td><input type="number" name="tenderness" step="0.01" id="tenderness" placeholder="3.0 - 12.0 KgF" required="required" min="3.0" max="12.0"/></td>
                                </tr>
                                <tr>
                                    <td><label for="sacrWeight" class="control-label">Peso de Sacrificio Promedio de la Raza (Kg):</label></td>
                                    <td><input name="sacrWeight" type="number" id="sacrWeight" placeholder="400 - 550 Kg" required="required" min="400" max="550" maxlength="3"/></td>     
                                    <td class="span2"></td>
                                    <td><label for="imgrace" class="control-label">Imagen de la Raza:</label></td>
                                    <td><input type="file" name="file" style="display:none" onchange="this.form.imgrace.value = this.value;" required="required">
                                        <input type="text" name="imgrace" class="bnt span10" readonly="readonly"  required="required">
                                        <input type="button" value="Ir" onclick="this.form.file.click();" class="btn span2">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="form-actions" align="center">
                            <button type="submit" class="btn btn-primary"><i class="icon-check icon-white"></i> Registar</button>
                            <a href="menuadm.php" class="btn btn-danger"><i class="icon-remove icon-white"></i> Cancelar</a>
                        </div>
                    </form>
                </div>
                <div class="span1"></div>
            </div>
            <footer class="footer">
                <div class="container">
                    <small>	
                        <img src="../../img/unicor_logo.png">
                        <strong>	Universidad de Cordoba. Facultad de Ingen&iacute;erias :: Departamento de Ingen&iacute;eria de Sistemas y Telecomunicaciones</strong>
                        <br>
                        Dise&ntilde;ado y Desarrollado por: Mar&iacute;a Alejandra Teher&aacute;n &amp; Daniela Mu&ntilde;oz De La Rosa &copy;
                    </small>
                </div>
            </footer>
        </div>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/bootstrap.js"></script>
        <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
    </body>
</html>